/**
 * 
 */
package model;

import java.util.HashMap;

/**
 * @author Anthares
 *
 */
public class AppSettings {
	private static HashMap<AppSettingsEnum, AppSettings> settings;
	private String name;
	private double value;

	/**
	 * @param name
	 * @param value
	 */
	public AppSettings(String name, double value) {
		this.name = name;
		this.value = value;
	}

	/**
	 * @return the settings
	 */
	public static HashMap<AppSettingsEnum, AppSettings> getSettings() {
		return settings;
	}

	/**
	 * @param settings the settings to set
	 */
	public static void setSettings(HashMap<AppSettingsEnum, AppSettings> settings) {
		AppSettings.settings = settings;
	}
	/**
	 * @param appSet
	 * @return
	 */
	public static AppSettings getValue(AppSettingsEnum appSet){
		return settings.get(appSet);
	}
	/**
	 * @param appSet
	 * @param value
	 */
	public static void setValue(AppSettingsEnum appSet, AppSettings apps){
		settings.put(appSet, apps);
	}
	/**
	 * 
	 * @return
	 */
	public double getValue(){
		return this.value;
	}
	/**
	 * 
	 * @param v
	 */
	public void setValue(double value){
		this.value = value;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	
}
